Frame
interface Frame
A frame in the browser.
Each web page loaded in the browser has a main (top-level) frame. The frame itself may have child frames. When a web page is unloaded, its frame and all child frames are closed automatically. Any attempt to work with an already closed frame will lead to the
IllegalStateException
error.
Properties
Functions
Link copied to clipboard
Executes the given
command
in the frame.Link copied to clipboard
Executes the given
javaScript
code in the frame and returns the result of the execution.Executes the given
javaScript
code in the frame and returns the result of the execution through the given callback
.Link copied to clipboard
Returns
true
if some content in this frame is selected.Link copied to clipboard
Inspects the given
location
on the web page containing this frame and returns the result of the inspection.Inspects the given location on the web page containing this frame and returns the result of the inspection.
Link copied to clipboard
Returns
true
if the command with the given commandName
can be executed in the frame.Link copied to clipboard
Returns the
localStorage
instance of this frame.Link copied to clipboard
Returns a
RenderProcess
associated with the current Frame instance.Link copied to clipboard
Returns a string that contains HTML of the selected content in the frame or an empty string if there is no selection.
Link copied to clipboard
Returns a text representation of the selected content in the frame or an empty string if there is no selection.
Link copied to clipboard
Returns the
sessionStorage
instance of this frame.Link copied to clipboard
Creates a new popup where the
view-source:<frame-url>
URL is loaded to display HTML source of the frame.